import {HYEventStore} from "hy-event-store"
import {reqgetRecommendList} from "../service/homeMusic"

const recommendStore = new HYEventStore({
  state: {
    recommendList: []
  },
  actions:{
    async getRecommendList(ctx){
      const res = await reqgetRecommendList()
      ctx.recommendList = res.playlist
    }
  }
})

export default recommendStore